<template>
  <div class="wrapper">
    <div class="error-404-parent">
      <div class="lt-404">
        <div class="lt-404-img"></div>
      </div>
      <div class="rt-404">
        <h1>404</h1>
        <div class="rt-404-desc">抱歉，你访问的页面不存在！</div>
        <el-button type="primary" class="font-size-13 znz-button" @click.native="clickToHome">返回首页</el-button>
      </div>
      <div class="copy-right-bottom">Copyright &copy; {{ new Date().getFullYear() }} {{ clientName }}</div>
    </div>
  </div>
</template>

<script>
import config from '@/setting'

export default {
  data() {
    return {
      clientName: config.application.name
    }
  },

  methods: {
    clickToHome() {
      // let route = this.$route.fullPath.replace(/\?/, e => {
      //   return e + '&'
      // })
      // this.removeTabs(route)
      //
      this.$router.push('/backsys/home')
    }
  }
}
</script>

<style scoped lang="scss">
.wrapper {
  width: 100%;
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fff;
  .error-404-parent {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: calc(100vh - 150px);
    .lt-404 {
      margin-top: -10%;
      width: 56%;
      height: 100%;
      padding-right: 120px;
      &-img {
        float: right;
        width: 100%;
        max-width: 430px;
        height: 360px;
        background-repeat: no-repeat;
        background-position: 50% 50%;
        background-size: contain;
        background-image: url('~@/libs/assets/error/bpf-error-404.jpg');
      }
    }
    .rt-404 {
      width: 45%;
      height: 100%;
      margin-top: -10%;
      padding-top: 30px;
      h1 {
        margin-bottom: 24px;
        color: #515a6e;
        font-weight: 600;
        font-size: 72px;
        line-height: 72px;
      }
      &-desc {
        margin-bottom: 16px;
        color: #808695;
        font-size: 20px;
        line-height: 28px;
      }
    }
  }
  .copy-right-bottom {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
  }
}
</style>
